package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zksk.common.core.web.domain.BaseEntity;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 订单问题表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-15
 */
@Data
@Accessors(chain = true)
@TableName("platform_fact_orders_question")
@ApiModel(value = "OrdersQuestion对象", description = "订单问题表")
public class OrdersQuestion extends BaseEntity {

    @ApiModelProperty("表主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("订单编号")
    @TableField("orders_id")
    private Long ordersId;

    @ApiModelProperty("经办人编号")
    @TableField("operator_id")
    private Long operatorId;

    @ApiModelProperty("经办人名称")
    @TableField("operator_name")
    private String operatorName;

    @ApiModelProperty("经办人联系电话")
    @TableField("operator_phone")
    private String operatorPhone;

    @ApiModelProperty("社交帐号")
    @TableField("`account`")
    private String account;

    @ApiModelProperty("担任职务")
    @TableField("`work`")
    private String work;

    @ApiModelProperty("问题类型")
    @TableField("question_type")
    private String questionType;

    @ApiModelProperty("问题详情")
    @TableField("question_details")
    private String questionDetails;

    @ApiModelProperty("问题状态")
    @TableField("question_status")
    private String questionStatus;

    @ApiModelProperty("附件文件")
    @TableField("`file`")
    private String file;

    @ApiModelProperty("记录人员")
    @TableField("record_user")
    private Long recordUser;

    @ApiModelProperty("记录时间")
    @TableField("record_time")
    private LocalDateTime recordTime;

    @ApiModelProperty("删除标识（0 正常 2删除）")
    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String ORDERS_ID = "orders_id";

    public static final String OPERATOR_ID = "operator_id";

    public static final String OPERATOR_NAME = "operator_name";

    public static final String OPERATOR_PHONE = "operator_phone";

    public static final String ACCOUNT = "account";

    public static final String WORK = "work";

    public static final String QUESTION_TYPE = "question_type";

    public static final String QUESTION_DETAILS = "question_details";

    public static final String QUESTION_STATUS = "question_status";

    public static final String FILE = "file";

    public static final String RECORD_USER = "record_user";

    public static final String RECORD_TIME = "record_time";

    public static final String DEL_FLAG = "del_flag";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
